function HomeView(/*loginView,*/ controller) {
	View.call(this, controller);
	
//	this.getLoginView = function() {
//		return this.loginView;
//	};
//	
//	this.setLoginView = function(loginView) {
//		this.loginView = loginView;
//		this.rightCell.appendChild(this.loginView.tag);
//	};
	
	this.setMenuView = function(menuView) {
		this.menuView = menuView;
		this.menuView.setContentViewNode(this.centerTbody);
		
		var tr = document.createElement("tr");
		  var td = document.createElement("th");
		    td.appendChild(this.menuView.tag);
		  tr.appendChild(td);
		this.centerThead.appendChild(tr);
	};

	this.setContentView = function(contentView) {
		this.contentView = contentView;

		while (this.centerTbody.hasChildNodes()) {
			this.centerTbody.removeChild(this.centerTbody.firstChild);
		}
		
		var tr = document.createElement("tr");
		  var td = document.createElement("td");
		    td.appendChild(this.contentView.tag);
		  tr.appendChild(td);
		this.centerTbody.appendChild(tr);
	};
	
	this.createVideoMenu = function() {
//		this.controller.callMethod([this, "createVideoMenuDone"], "getVideoMenuIdentifier", {}, Controller.JSON);
//	};
//	
//	this.createVideoMenuDone = function(controller) {
//		var loginView = this.getLoginView();
		var videoMenuController = new Controller("api.php", "VideoMenuController");//controller.uri, controller.name, controller.id);
		var videoMenuView = new VideoMenuView(videoMenuController/*, loginView*/);
		
		this.setMenuView(videoMenuView);
		videoMenuView.videoSearchEngine();
	};
	
	// //////////////////////////////////////////////////
	this.tag = document.createElement("table");
	this.tag.className = "publicitary";
	this.tbody = document.createElement("tbody");
	this.tr = document.createElement("tr");
	this.leftCell = document.createElement("td");
	this.leftCell.className = "left-cell";
	this.centerCell = document.createElement("td");
	this.centerCell.className = "center-cell";
	this.rightCell = document.createElement("td");
	this.rightCell.className = "right-cell";
	this.tr.appendChild(this.leftCell);
	this.tr.appendChild(this.centerCell);
	this.centerTable = document.createElement("table");
	this.centerTable.className = "HomeView";
	this.centerThead = document.createElement("thead");
	this.centerTbody = document.createElement("tbody");
	this.centerTable.appendChild(this.centerThead);
	this.centerTable.appendChild(this.centerTbody);
	this.centerCell.appendChild(this.centerTable);
	this.tr.appendChild(this.rightCell);
	this.tbody.appendChild(this.tr);
	this.tag.appendChild(this.tbody);
	// //////////////////////////////////////////////////
	
//	this.loginView = null;
	this.menuView = null;
	this.contentView = null;
	
//	this.setLoginView(loginView);
	
	this.createVideoMenu();
}